<template>
	<view class="content">
		<view class="status"></view>
		<view class="nav">
			<view class="left">
				<u-icon class="icon" name="arrow-left" size="44rpx" color="#000000" @click="toBack()"></u-icon>
			</view>
			
			<view class="center">
				消息中心
			</view>
			<view class="right">

			</view>
		</view>
		<view class="message_list">
			<view class="item" v-for="(item,index) in 5" :key="index" @click="toNotice()">
				<view class="left">
					通知
				</view>
				<view class="right">
					<text>21-10-31</text>
					<u-icon name="arrow-right" size="14"></u-icon>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			toBack(){
				uni.navigateBack({
					delta:1
				})
			},
			toNotice(){
				uni.navigateTo({
					url:'../notice/notice'
				})
			}

		}
	}
</script>

<style>
	page {
		background-color: #F3F4F6;
	}
</style>
<style lang="scss">
	.content {
		text-align: center;
		align-items: center;
		width: 100%;
		padding-bottom: 60rpx;

		.status {
			height: var(--status-bar-height);
			background-color: #FFFFFF;
		}

		.nav {
			height: 120rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			background-color: #FFFFFF;

			.left {
				.icon {
					margin-left: 32rpx;
				}
			}

			.center {
				font-style: normal;
				color: #000000;
				font-size: 33rpx;
				font-family: Source Han Sans CN;
				font-weight: bold;
			}

			.right {
				height: 120rpx;
				text-align: center;
				align-items: center;
				margin-right: 32rpx;

				image {
					height: 40rpx;
					width: 40rpx;
					margin-top: 40rpx;
				}
			}
		}
		.message_list{
			background-color: #F3F4F6;
			padding-top: 10rpx;
			.item{
				height: 120rpx;
				display: flex;
				background-color: #ffffff;
				justify-content: space-between;
				padding-left: 32rpx;
				padding-right: 32rpx;
				margin-top: 10rpx;
				.left{
					height: 120rpx;
					font-size: 30rpx;
					font-weight: 400;
					align-items: center;
					line-height: 120rpx;
					color: #000;
				}
				.right{
					height: 120rpx;
					display: flex;
					align-items: center;
					line-height: 120rpx;
				}
			}
		}
	}
</style>
